# -*- coding:utf-8 -*-
from __future__ import unicode_literals

from django.db import models

# Create your models here.
class User(models.Model):
    username = models.CharField(max_length=32,verbose_name=u'用户名')
    password = models.CharField(max_length=32,verbose_name=u'密码')
    email = models.EmailField(verbose_name=u'邮箱地址')
    phone = models.CharField(max_length=11,default='',verbose_name=u'联系电话')
    age = models.IntegerField(verbose_name=u"年龄",default=18)

    class Meta:
        db_table = 'user_info'
        verbose_name = u'用户信息表'
        verbose_name_plural = verbose_name

    def __unicode__(self):
        return "%s,%s,%s" %(self.username,self.phone,self.email)